package Duoxiancheng.FutureMode;

public class RealData implements Data{
    String result;
    RealData(){
        try {
            Thread.sleep(1000);
            result = "ok";
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

    @Override
    public String getResult() throws InterruptedException {
        return result;
    }
}
